package com.finance.rule.computer;

import com.finance.base.enums.MajorTypeEnum;
import com.finance.report.bean.pojo.LogisticsData;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;

/**
 * 根据运单号的后缀 如果以-1 -2 -3这种格式结尾
 * 则-1为主件 -N均为拖件
 *
 */
@Component
@Scope("prototype")
public class WaybillNumSuffixWithDifferentBizCodeAnalyzer implements IMajorAnalyzer,Serializable {

    @Override
    public MajorTypeEnum majorTyeOf(LogisticsData data) {
        return MajorTypeEnum.DRAG;
    }

    @Override
    public boolean isSingle(LogisticsData logisticsData) {
        return false;
    }

    @Override
    public List<LogisticsData> getOtherParts(LogisticsData logisticsData) {
        return null;
    }

    @Override
    public void init(String json) {

    }
}
